package com.nbcb.dao;

import com.nbcb.domain.Product;

import java.util.List;

public class ProductDao {
    public Product selectById(String id) {
        Product product = Constant.productHashMap.get(id);
        return product;
    }

    public void update(Product product) {
        Constant.productHashMap.replace(product.getId(), product);
    }

}
